﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using Class_KetNoi;

namespace GiaoDien
{
    public partial class uc_ThietLapPhanQuyen : DevExpress.XtraEditors.XtraUserControl
    {
        public uc_ThietLapPhanQuyen()
        {
            InitializeComponent();
        }
        KetNoi_PhanQuyen kn = new KetNoi_PhanQuyen();
        private void btnThem_Click(object sender, EventArgs e)
        {

        }
        public void LoadDuLieu()
        {
            gridControl1.DataSource = kn.Load_PhanQuyen();
        }
        private void uc_ThietLapPhanQuyen_Load(object sender, EventArgs e)
        {
            kn.connect();
            LoadDuLieu();
            labelControl2.Hide();
            txtMaPhanQuyen.Hide();
            btnHuy.Enabled = false;
            btnLuu.Enabled = false;
        }
    }
}
